import React, { Component } from 'react';
import './login.scss'
import {user_login} from './utils/api'

class login extends Component {
    constructor(props){
        super(props);
        this.state={}
    }
    componentDidMount(){
        user_login({ phone:'13611129070',pass:'1234' }).then((res)=>{
            console.log(res.data);
        })
    }
    render() {
        return (
            <div className='App'>
                <div className="circle">
                    <div className="smallcircle"></div>
                </div>
                <input type="text" placeholder='请输入用户名' value={this.state.phone}/>
                <input type="pwd" placeholder='请输入密码' value={this.state.pwd}/>
                <button>登录</button>
                <span>注册</span>
            </div>
        );
    }
}

export default login;